package com.graduate.bssp.service.impl;

import com.graduate.base.entity.PageInfo;
import com.graduate.bssp.entity.User;
import com.graduate.bssp.dao.UserMapper;
import com.graduate.bssp.service.IUserService;
import com.graduate.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author yongqiangyao
 * @since 2018-02-05
 */
@Service("userService")
public class UserServiceImpl extends BaseServiceImpl<UserMapper, User> implements IUserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectByPrimaryKey(Integer userid) {
        return userMapper.selectByPrimaryKey(userid);
    }

    @Override
    public List<User> selectUserList(PageInfo<User> pageInfo) {
        return userMapper.selectUserList(pageInfo);
    }

    @Override
    public User selectUser(User user) {
        return userMapper.selectUser(user);
    }
}
